<?xml version="1.0" encoding="ISO_8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
</h:head>
	
<h:body>	
	<p:panel header="#{msg.relatorio_headerAdd}">	
		<h:form name="form1">		
			<p:panelGrid columns="2">
	
				
			 			
 			<p:outputLabel for="dataInicial" value="#{msg.relatorio_dataInicial}"/>	 
 			<p:inputMask id="dataInicial" value="#{historicoMB.dataInicial}" mask="99/99/9999"/>  
 			
 			<p:outputLabel for="dataFinal" value="#{msg.relatorio_dataFinal}"/>	 
 		    <p:inputMask id="dataFinal" value="#{historicoMB.dataFinal}" mask="99/99/9999"/> 		
	 				
				<p:panelGrid columns="3">
		 			<p:commandButton value="#{msg.relatorio_buttonGerarRelatorio}" id="botao_gerar_relatorio_componente"  ajax="false" action="#{historicoMB.listHistorioDeUmComponente()}" rendered="#{historicoMB.visibilidadeBotaoGerarRelatorioComponente}">
		 				<f:setPropertyActionListener target="#{urlMB.url}" value="historico.xhtml" />
		 			</p:commandButton>
		 			
		 			<p:commandButton value="#{msg.relatorio_buttonGerarRelatorio}" id="botao_gerar_relatorio_usuario"  ajax="false" action="#{historicoMB.listHistorioDeUmUsuario()}"  rendered="#{historicoMB.visibilidadeBotaoGerarRelatorioUsuario}" >
		 				<f:setPropertyActionListener target="#{urlMB.url}" value="historico.xhtml" />
		 			</p:commandButton>
		 			
		  			<p:commandButton value="#{msg.button_cancel}" id="botao_cancel_cad"  ajax="false" >
		  				<f:setPropertyActionListener target="#{urlMB.url}" value="componentes.xhtml" />
		  			</p:commandButton>
				</p:panelGrid>
			</p:panelGrid>
		</h:form>	
	</p:panel>
				
</h:body>
</html>